package com.phms.mapper;

import com.phms.pojo.Pet;
import com.phms.pojo.PetExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PetMapper {

    long countByExample(PetExample example);


    int deleteByExample(PetExample example);

    int deleteByPrimaryKey(Long id);


    int insert(Pet record);

    int insertSelective(Pet record);


    List<Pet> selectByExample(PetExample example);


    Pet selectByPrimaryKey(Long id);


    int updateByExampleSelective(@Param("record") Pet record, @Param("example") PetExample example);


    int updateByExample(@Param("record") Pet record, @Param("example") PetExample example);


    int updateByPrimaryKeySelective(Pet record);

    int updateByPrimaryKey(Pet record);

    List<Pet> getAllByLimit(Pet po);

    int countAllByLimit(Pet po);
}